/*!
 @header TimerView.m
 @author 周益
 @version 1.0.0 2013/01/29 Creation
 Copyright (c) 2013年 mypocketbaby. All rights reserved.
 */

#import "TimerView.h"
#import "Config.h"

@implementation TimerView

@synthesize reImageView = _reImageView;
@synthesize secLabel = _secLabel;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
    //60S后重发按钮
    _reImageView = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"user_bg_001@2x" ofType:@"png"]]];
    _reImageView.frame = rect;
    [self addSubview:_reImageView];
    
    //秒数label
    _secLabel = [[UILabel alloc] initWithFrame:CGRectMake(3, 13, 35, 20)];
    _secLabel.backgroundColor = [UIColor clearColor];
    _secLabel.textColor = _SYS_COLOR_002;
    _secLabel.text = @"120";
    _secLabel.font = _SYS_FONT_007;
    [_reImageView addSubview:_secLabel];
}

@end
